docker: added method to get image from app.

related to #437.