Lenght of image is important or https will not work