fix divided to zero exception for not animated png