Image conditions

Now resizes image based on conditionals