Since small and medium picture are the same we can combine the two if structures here.