Fix incorrect key retrieval in chrome extensions for resized images