fix for variable image display sizes