made images resize to the frame that they will live in