added constraint to images sizes