refactored method to get png file
refactored method to get png image. ;)