fixed bounds error and transparency issue with jpg