now returning the proper png type