Recalculate frame on image change