Implement jpeg and svg image size functions