Change png convertion logic

doesn't work with alpha