Added a feature to handle images with huge metadata