I've tried to catch ajax success or complete when image is loaded from server. I've tried to write something like that, but couldn't get needed result:
$.ajax
dataType: 'png' #OR mimeType: 'image/png'
success: ->
alert 'Success'
error: ->
alert 'Error'
Could someone help me please. I completely stack with it. Maybe somebody has faced with same issue. Will be very grateful.