controlling media sizes