forked from: Elastic Image

@author Saqoosha