[Bug 9521] Improve appdb screenshot handling