fixed bug with image height (images were not yet loaded completelly)