converts png with transparency to jpg first, then does shenanigins