Fixed bug for png images