makes images size correctly in lofi